package cn.semcorp.zhuhaizj.listener;


import cn.semcorp.zhuhaizj.pojo.dto.AccountingUploadDTO;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.List;

public class ReadAccountingUploadDTODateListener extends AnalysisEventListener<AccountingUploadDTO> {

    static List<AccountingUploadDTO> list = new ArrayList<>();
    @Override
    public void invoke(AccountingUploadDTO accountingUploadDTO, AnalysisContext analysisContext) {
        list.add(accountingUploadDTO);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public static List<AccountingUploadDTO> getAccountingList(){
        return list;
    }
}
